Debugging optvfault path is extremely difficult because
it was run with psr.ic = 0.
Make it easy to differentiate the bug in optvfault path from
other normal execution path with psr.ic = 0 by introducing compile
time option to disable optvfault.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen_ia64_tlb_track ?= y
xen_ia64_tlb_track_cnt ?= n
xen_ia64_tlbflush_clock ?= y
+xen_ia64_disable_optvfault ?= n
# Used only by linux/Makefile.
AFLAGS_KERNEL += -mconstant-gp -nostdinc $(CPPFLAGS)
else
CFLAGS += -DVHPT_ENABLED=0
endif
+ifeq ($(xen_ia64_disable_optvfault),y)
+CFLAGS += -DCONFIG_XEN_IA64_DISABLE_OPTVFAULT
+endif
LDFLAGS := -g
ENTRY(vmx_virtualization_fault)
// VMX_DBG_FAULT(37)
mov r31=pr
+#ifndef CONFIG_XEN_IA64_DISABLE_OPTVFAULT
movl r30 = virtualization_fault_table
mov r23=b0
;;
mov b0=r30
br.sptk.many b0
;;
+#endif
vmx_virtualization_fault_back:
mov r19=37
adds r16 = IA64_VCPU_CAUSE_OFFSET,r21